package spring.cloud.tasks.common.status;

/**
 * 执行状态
 */
public class TaskStageStatus {
    public static final String status_watting_init = "watting_init";//默认
    public static final String status_handing = "handing";
    public static final String status_success = "success";
    public static final String status_fail = "fail";
    public static final String status_timeout = "timeout";

    public static boolean isTerminalState(String status) {
        return status_success.equals(status) || status_fail.equals(status) || status_timeout.equals(status);
    }
}
